package com.example.designpatterns.prototype;

public class Address implements Cloneable{

    public String name;

    public Address(String name) {
        this.name = name;
    }

    public Address clone(){
        Address address = null;
        try {
            address = (Address) super.clone();
        }catch (CloneNotSupportedException e){

        }
        return address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
